/*
 * =====================================================================================
 *
 *       Filename:  randomarr.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2015年03月07日 10时27分07秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  jianxi sun (jianxi), ycsunjane@gmail.com
 *   Organization:  
 *
 * =====================================================================================
 */
#ifndef __RANDOMARR_H__
#define __RANDOMARR_H__
#include <linux/if_ether.h>

#define LOCAL_AC_MAX 	(10)
struct mac_random_map_t {
	uint32_t random;
	char mac[ETH_ALEN];
};

extern struct mac_random_map_t random_map[LOCAL_AC_MAX];

uint32_t new_random(unsigned char *mac);
uint32_t get_random(unsigned char *mac);

#endif /* __RANDOMARR_H__ */
